package com.scnu.api.vo.user;

import cn.hutool.system.UserInfo;
import com.scnu.common.enums.PermissionGroup;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserInfoVo {
    private Long id;
    private String nickname;
    private String avatar;
    private String username;
    private String phone;
    private String email;
    private String isTeacher;
    private PermissionGroup permissionGroup;
    private UserInfoDto userInfo;


    @Data
    public static class UserInfoDto{
        private Long userId;

        /**
         * 班级
         */
        private String className;

        /**
         * 自我介绍
         */
        private String selfIntroduction;

        /**
         * 个人能力
         */
        private String skill;

        /**
         * 创建时间
         */
        private LocalDateTime createTime;

        /**
         * 更新时间
         */
        private LocalDateTime updateTime;

        /**
         * 创建用户id
         */
        private Long createBy;

        /**
         * 修改用户id
         */
        private Long updateBy;
    }
}
